<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@page import="com.lmpop.trade.ti_quote.*" %>
<%@page import="java.util.*" %>
<html>
  <head>
    
    <title>求购报价管理</title>
	<link href="/program/admin/index/css/style.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="index.js"></script>
</head>

<body>

  <% 
  	String trade_id="";
  	if(request.getParameter("trade_id")!=null) trade_id = request.getParameter("trade_id");
  	Ti_quoteInfo ti_quoteInfo = new Ti_quoteInfo();
  	List list = ti_quoteInfo.getListByPk(trade_id);
  	Hashtable map = new Hashtable();
  	if(list!=null && list.size()>0) map = (Hashtable)list.get(0);
  	
  	String info_id="",title="",content="",quote_date="",quote_name="",quote_compname="",quote_email="",quote_phone="",quote_file="",rsrv_str1="",rsrv_str2="",rsrv_str3="",cust_id="",in_date="",user_id="",remark="";
  	String biz_title = "",re_title="",re_content="";
	if(map.get("info_id")!=null) info_id = map.get("info_id").toString();
	if(map.get("re_title")!=null) re_title = map.get("re_title").toString();
	if(map.get("re_content")!=null) re_content = map.get("re_content").toString();
	if(map.get("biz_title")!=null) biz_title = map.get("biz_title").toString();
  	if(map.get("title")!=null) title = map.get("title").toString();
  	if(map.get("content")!=null) content = map.get("content").toString();
  	if(map.get("quote_date")!=null) quote_date = map.get("quote_date").toString();
  	if(map.get("quote_name")!=null) quote_name = map.get("quote_name").toString();
  	if(map.get("quote_compname")!=null) quote_compname = map.get("quote_compname").toString();
  	if(map.get("quote_email")!=null) quote_email = map.get("quote_email").toString();
  	if(map.get("quote_phone")!=null) quote_phone = map.get("quote_phone").toString();
  	if(map.get("quote_file")!=null) quote_file = map.get("quote_file").toString();
  	if(map.get("rsrv_str1")!=null) rsrv_str1 = map.get("rsrv_str1").toString();
  	if(map.get("rsrv_str2")!=null) rsrv_str2 = map.get("rsrv_str2").toString();
  	if(map.get("rsrv_str3")!=null) rsrv_str3 = map.get("rsrv_str3").toString();
  	if(map.get("cust_id")!=null) cust_id = map.get("cust_id").toString();
  	if(map.get("in_date")!=null) in_date = map.get("in_date").toString();
  	if(map.get("user_id")!=null) user_id = map.get("user_id").toString();
  	if(map.get("remark")!=null) remark = map.get("remark").toString();

  %>
	
	<h1>求购报价管理</h1>
	
	<!--
	<table width="100%" align="center" cellpadding="0" cellspacing="0" class="dl_so">
        <tr>
          <td width="9%" align="center"><img src="/program/admin/index/images/ban_01.gif" /></td>
          <td width="91%" align="left">
		  <h4>-----------------</h4>
		  <span>1----------------。</span><br/>
		  <span>2----------------。</span>
		  </td>
        </tr>
      </table>
      <br/>
	  -->
	
	
	<form action="/doTradeReg.do" method="post" name="addForm">
	<table width="100%" cellpadding="0" cellspacing="1" border="0" class="listtab">
		
		<tr>
			<td align="right" width="10%">
				产品<font color="red">*</font>
			</td>
			<td colspan="3"><%=biz_title %></td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				报价标题<font color="red">*</font>
			</td>
			<td colspan="3"><%=title %></td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				详细内容<font color="red">*</font>
			</td>
			<td colspan="3"><%=content %></td>
		</tr>
		
		<tr>

			<td align="right" width="10%">
				报价人名称<font color="red">*</font>
			</td>
			<td><%=quote_name %></td>
			
			<td align="right" width="10%">
				期望回复时间<font color="red">*</font>
			</td>
			<td><%=quote_date %></td>

		</tr>
		
		<tr>
			<td align="right" width="10%">
				报价人企业名称<font color="red">*</font>
			</td>
			<td><%=quote_compname %></td>

			<td align="right" width="10%">
				报价人Email<font color="red">*</font>
			</td>
			<td><%=quote_email %></td>
		</tr>
		
		<tr>
			<td align="right" width="10%">
				报价人电话<font color="red">*</font>
			</td>
			<td><%=quote_phone %></td>

			<td align="right" width="10%">
				报价单号<font color="red">*</font>
			</td>
			<td><%=trade_id %></td>
		</tr>
	
		
		<tr>
			<td align="right" width="10%">
				备注:
			</td>
			<td colspan="3"><%=remark %></td>
		</tr>
		
		
	</table>
	
	<%
	if(re_title.length() > 0) {
	%>
	<table width="100%" cellpadding="0" cellspacing="1" border="0" class="listtab">

		<tr>
			<td align="right" width="10%">
				回复标题:
			</td>
			<td colspan="3"><%=re_title %></td>
		</tr>	
		
		<tr>
			<td align="right" width="10%">
				回复内容:
			</td>
			<td colspan="3"><%=re_content %></td>
		</tr>	
	
	</table>
	
	<%
		}
	%>
	
	<table width="100%" cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td align="center">
				<input name="user_id" id="user_id" size="20" maxlength="20" value="<%=user_id %>" type="hidden" />
				<input type="hidden" name="bpm_id" value="7497" />
	  			<input type="hidden" name="trade_id" value="<%=trade_id %>" />
				<input type="submit" class="buttoncss" name="tradeSub" value="提交" onclick="return checkSub();"/>&nbsp;&nbsp;
				<input type="button" class="buttoncss" name="tradeRut" value="返回" onclick="window.location.href='index.jsp';"/>
			</td>
		</tr>
	</table>
	</form>
</body>

</html>
